package com.vincent.sciinfo.service;

import com.github.pagehelper.PageInfo;
import com.vincent.sciinfo.interceptor.FeignPassToken;
import com.vincent.sciinfo.pojo.Project;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-project", configuration = FeignPassToken.class)
public interface ProjectService {

    @RequestMapping("/project/selectCheckAndRemoveProject")
    PageInfo selectCheckAndRemoveProject(@RequestParam Integer pn, @RequestParam Integer pageSize);

    @RequestMapping("/project/updateProjectStatus")
    void updateProjectStatus(@RequestParam String projectId, @RequestParam int operaCode);

    @RequestMapping("/project/selectProjectNameById")
    String[] selectProjectNameById(@RequestParam String projectId);
}
